package files;

import java.io.IOException;

import de.dnb.gnd.parser.Record;
import de.dnb.gnd.utils.DownloadWorker;

public class MyWorker extends DownloadWorker {

	@Override
	protected void processRecord(Record record) {
		System.err.println(record.getId());
		
	}

	/**
	 * @param args
	 * @throws Exception 
	 * @throws NoPreferredNameException 
	 * @throws IOException 
	 */
	public static void main(String[] args)  {
		MyWorker worker = new MyWorker();
		try {
			worker.setFolder("d:/normdaten");
			worker.setFilePrefix("gnd");
			worker.processAllFiles();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 

	}

}
